# ---------------------------------------------------------------------
# Update segment administrative domains
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------

# NOC modules
from noc.inv.models.networksegment import NetworkSegment


def fix():
    for ns in NetworkSegment.objects.all():
        ns.update_access()
